#!/bin/python3
import pathlib, sys
with open(pathlib.Path(__file__).parent/'stroke.txt')as f:hua={a[0]:len(a)-2for a in f}
for word in sys.argv[1:]:
    print(sum(hua[char] for char in word), word)
